using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HeresyManager.Talents
{
    [Serializable]
    public class ExoticWeaponTraining : Talent
    {
        private String type;
        public override string Name
        {
            get { return "Exotic Weapon Training (" + type + ")"; }
        }

        public ExoticWeaponTraining(String type)
        {
            this.type = type;
        }



        // override object.Equals
        public override bool Equals(object obj)
        {
            return base.Equals(obj) && this.type == (obj as ExoticWeaponTraining).type;
        }

        // override object.GetHashCode
        public override int GetHashCode()
        {
            int prime = 31;
            int result = 1;
            result = prime
                    * result
                    + base.GetHashCode();
            result = prime
                    * result
                    + this.type.GetHashCode();
            return result;
        }

    }
}
